#!/bin/bash


# make handlers.h

[ -x handle ] || mkdir handle
cd handle || exit

echo "
#ifndef _3761_HANDLE_H_
#define _3761_HANDLE_H_
" > handlers.h

((A = 0))
while ((A < 17))
do
	printf "#include \"AFN%02X.h\"\n" $A >> handlers.h
	((A++))
done

echo "
#endif//_3761_HANDLE_H_
" >> handlers.h

# make handlebase.h
# make handlebase.cpp
name=../script/make_handle_base.sh
[ -a $name ] && chmod +x $name && $name && echo $name ok

# make AFNxx.h
name=../script/make_handle_hpp.sh
[ -a $name ] && chmod +x $name && $name && echo $name ok

# make AFNxx.cpp
name=../script/make_handle_cpp.sh
[ -a $name ] && chmod +x $name && $name && echo $name ok
